package com.wang.web3

import android.os.Bundle
import android.support.v7.app.AppCompatActivity

class Main3Activity : AppCompatActivity() {


    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
//        setContentView(R.layout.activity_main3)

    }




    //average green proud remember advance trick estate oblige trouble when cube person


//    private fun createETHWalletFromWords(words: String): TianWallet {
//        val wordsList = Arrays.asList(*words.split("\\s+".toRegex()).dropLastWhile { it.isEmpty() }.toTypedArray())
//        val deterministicSeed = DeterministicSeed(wordsList, null, "", 0)
//        val determ inisticKeyChain = DeterministicKeyChain.builder().seed(deterministicSeed).build()
//        //DERIVATION_PATH = "m/44'/60'/0'/0/0"
//        val privateKey = deterministicKeyChain.getKeyByPath(parsePath(DERIVATION_PATH), true).privKey
//

//        val ecKeyPair = ECKeyPair.create(privateKey)
//        val address = Keys.getAddress(ecKeyPair)
//        return TianWallet("0x$address", Numeric.toHexStringWithPrefix(ecKeyPair.privateKey), Numeric.toHexStringWithPrefix(ecKeyPair.publicKey), words)
//    }
}
